
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>友情链接  - 列表</title>



<link href="static/css/bass.css" rel="stylesheet" type="text/css">
<script src="static/js/jquery.js" type="text/javascript"></script>


</head>

<body>
<div class="pageHeader">
    <h3><i class="fa fa-table"></i> 友情链接  - 列表 </h3>
    <div class="fr">
        <a href="javascript:history.go(-1);location.reload();" class="btn">返回</a>    
    </div>
</div>

<div class="pageAction">
    <div class="fl">
        <a href="?dopost=add" class="btn"><i class="fa fa-plus"></i> 添加</a>
        <a href="javascript:location.reload();" class="btn"><i class="fa fa-refresh"></i> 刷新</a> 
        &nbsp;

    </div>

    
</div>

<form action="" method="post"  class="listForm">
<div class="mainList">

    <table class="list_table_A"  border="1" cellspacing="0" cellpadding="0">
  <tr>
    <th align="left" width="50">ID</th>
    <th align="left">图片 </th>
    <th align="left">标题 & 网址 </th>
    <th align="center" width="60">
        <!--<input type="checkbox" cbGroupControl='B' />-->
        <button type="button" btnbatchupdate="batch_display" class="btn btn-primary">显示</button>
    </th>
    <th align="left" width="50">
    <button type="button" btnbatchupdate="batch_sort" class="btn btn-primary">批量排序</button>
    </th>
    <th align="left" width="100">操作</th>
  </tr>
<?php foreach( $list as $k => $v ):?>
  <tr>
    <td><?php echo $v['id']?></td>
    <td>

        <img src="<?php echo $v['litpic']?>"  style="max-width:100%; max-height:150px;" />
    </td>
    <td>
        标题：<?php echo $v['title']?><br/>
        网址：<a href="<?php echo $v['url']?>" title="点击修改"><?php echo $v['url']?></a> <br/>
    </td>



     <td align="center">
        <?php if($v['display'] == 1 ){
            echo '<span class="d_display_1"><input cbGroup="B" type="checkbox" name="display['.$v['id'].']" value="1"  checked  /></span>';
        }else{
            echo '<span class="d_display_0"><input cbGroup="B" type="checkbox" name="display['.$v['id'].']" value="1"    /></span>';
        }?> 
    </td>
    <td><input type="text" name="sort[<?php echo $v['id']?>]" class="input-mini" value="<?php echo $v['sort']?>"></td>


    <td>
                    <!--<a href="#" class="btn" title="预览"><i class="fa fa-external-link"></i></a>-->
            <a href="?dopost=upt&id=<?php echo $v['id']?>" class="btn" title="修改"><i class="fa fa-edit"></i></a>
            <a href="?dopost=del&id=<?php echo $v['id']?>"  class="btn btn_del" title="删除"  onclick="return confirm('确定删除该条数据?');"><i class="fa fa-trash"></i></a>   
                
    </td>
  </tr>
  
<?php endforeach ;?>
</table>

</div>
<div class="pages">
    </div>
</form>



<!-- 插件 -->
<script src="static/lib/My97DatePicker/WdatePicker.js"></script>

<script src="static/lib/validate/jquery.validate.js"></script>
<script src="static/lib/validate/additional-methods.js"></script>

<link href="static/lib/jbox/Metro/jbox.css" rel="stylesheet"/>
<script src="static/lib/jbox/jquery.jBox.js"></script>

<link rel="stylesheet" href="static/kindeditor/themes/default/default.css" />
<script charset="utf-8" src="static/kindeditor/kindeditor.js"></script>
<script charset="utf-8" src="static/kindeditor/kindeditor-lrxin.js"></script>

<script src="static/js/lrxin-form.js"></script>
<script src="static/js/lrxin-list.js"></script>
<script type="text/javascript">


</script>










</body>
</html>